package org.jeecg.modules.htxincailiao.order.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.htxincailiao.order.constant.HTOrderInfoTypeEnum;
import org.jeecg.modules.htxincailiao.order.constant.HTOrderTypeEnum;
import org.jeecgframework.poi.excel.annotation.Excel;

import javax.validation.constraints.NotNull;

@Data
public class HTSubmitOrderDTO {

    @NotNull(message = "地址ID不能为空")
    private String addressId;

    /**
     *  确定订单类型 0-微信支付 1-支付宝支付
     */
    @NotNull(message = "支付类型不能为空")
    private Integer paymentType;

    /**
     * 商品ID
     */
    private String goodsId;

    /**
     * 资料ID
     */
    private String libraryId;

    /**
     * 报告ID
     */
    private String reportId;

    /**
     * 留言信息，按店铺
     */
    private String leaveMessageInfo;

    /**
     * 购买商品数量
     */
    private Integer quantity;

    /**
     *  确定订单类型 0-直接购买 1-购物车
     */
    @NotNull(message = "订单确认类型不能为空")
    private HTOrderInfoTypeEnum orderInfoType;

    //订单类型: 0-商品订单 1-资料订单 2-产业中心-会议订单家 3-产业中心-展会订单 4-产业中心-沙龙订单
    private HTOrderTypeEnum orderType;

    /**接受资料邮箱*/
    @Excel(name = "接受资料邮箱", width = 15)
    @ApiModelProperty(value = "接受资料邮箱")
    private String receivedArchivesEmail;

}
